package com.xyc.redis.expection;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

@ControllerAdvice
public class ProductControllerException {

    @ExceptionHandler(NullPointerException.class)
    public String exceptionHandler(){

        return "nullerror";
    }
}
